import logging
import time






def have_log():
    nowtime = time.strftime('%Y%m%d%H%M%S')
    log=logging.basicConfig(filename=nowtime+'jiuxian.log',filemode='a+',format='%(message)s--%(levelname)s--%(filename)s',level=logging.DEBUG)

    return log